// 设置表单隐藏与显示
// 获取元素
const bna = uls.getElementsByTagName("li");
const bodyNav = document.querySelector(".body-nav");
const modal = document.querySelector(".modal");
// 添加点击事件
// console.log(uls.getElementsByTagName("li")[i])
for (let i = 0; i < bna.length; i++) {
    uls.getElementsByTagName("li")[i].getElementsByClassName("body-nav-af")[0].addEventListener("click", function () {
        modal.style.display = "block"

    })
}
modal.addEventListener("click", function () {
    modal.style.display = "none"
});

